import Layout from '@/layout/index'

const router = [
  {
    path: '/materialBuyPrice',
    component: Layout,
    hidden: true,
    children: [
      {
        path: 'materialBuyPriceSpuList/:spuId',
        name: 'MaterialBuyPriceSpuList',
        component: () => import('@/views/accounting/materialBuyPrice/MaterialBuyPriceSpuList'),
        meta: { title: 'SPU价格' },
        noCache: true,
        hidden: true
      }
    ]
  },
  {
    path: '/accountingAp',
    component: Layout,
    hidden: true,
    children: [
      {
        path: 'accountingApReturnList/:custItemNo',
        name: 'AccountingApReturnList',
        component: () => import('@/views/accounting/accountingAp/AccountingApReturnList'),
        meta: { title: '退单结算' },
        noCache: true,
        hidden: true
      }
    ]
  },
  {
    path: '/accountingAp',
    component: Layout,
    hidden: true,
    children: [
      {
        path: 'viewSkuOrder/:skuId/:monthYear',
        name: 'AccountingApSkuList',
        component: () => import('@/views/accounting/accountingAp/AccountingApSkuList'),
        meta: { title: '采购汇总SKU订单明细' },
        noCache: true,
        hidden: true
      }
    ]
  },
  {
    path: '/promotionDiscountPrice',
    component: Layout,
    hidden: true,
    children: [
      {
        path: 'promotionDiscountPriceSpuList/:spuId',
        name: 'PromotionDiscountPriceSpuList',
        component: () => import('@/views/accounting/promotionDiscountPrice/PromotionDiscountPriceSpuList'),
        meta: { title: '活动SPU价格' },
        noCache: true,
        hidden: true
      }
    ]
  }
]

export default router
